import 'package:flutter/material.dart';
import 'package:get/get.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final themeData = ThemeData(
      elevatedButtonTheme: ElevatedButtonThemeData(
        style: ElevatedButton.styleFrom(backgroundColor: Colors.black),
      ),
    );

    return GetMaterialApp(
      // 使用 GetMaterialApp
      title: 'Flutter Demo',
      theme: themeData,
      home: OutlineInputBorderExample(), // 设置 HomeScreen 作为首页
    );
  }
}

class OutlineInputBorderExample extends StatelessWidget {
  const OutlineInputBorderExample({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('OutlineInputBorder Example')),
      body: Padding(
        padding: const EdgeInsets.all(16.0),
        child: TextField(
          decoration: InputDecoration(
            border: OutlineInputBorder(), // 设置边框样式
          ),
        ),
      ),
    );
  }
}
